﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

/// <summary>
/// Summary description for Bus_Users
/// </summary>
public class Bus_Users : DAL_Users
{
    DataTable dt = new DataTable();
    public DataTable Users_getAllData()
    {
        try
        {
            dt = DAL_Users_getAllData();
        }
        catch
        {
        }
        return dt;
    }
    public DataTable Users_Login(string where)
    {
        try
        {
            dt = DAL_Users_Login(where);
        }
        catch
        {
        }
        return dt;
    }
    public DataTable Users_getAllById(int Id)
    {
        try
        {
            dt = DAL_Users_getAllById(Id);
        }
        catch
        {
        }
        return dt;
    }
    public DataTable Users_getAllByEmail(string email)
    {
        try
        {
            dt = DAL_Users_getAllByEmail(email);
        }
        catch
        {
        }
        return dt;
    }
    public DataTable Users_getAllByPer(int per)
    {
        try
        {
            dt = DAL_Users_getAllByPer(per);
        }
        catch
        {
        }
        return dt;
    }
    public Boolean Users_addtodel(int id)
    {
        try
        {
            DAL_Users_addtodel(id);
        }
        catch
        {
            return false;
        }
        return true;
    }
    public Boolean Users_del()
    {
        try
        {
            DAL_Users_del();
        }
        catch
        {
            return false;
        }
        return true;
    }
    public Boolean Users_Update(DTO_Users obj)
    {
        try
        {

            if (DAL_Users_Update(obj))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        catch
        {
            return false;
        }
    }
    public Boolean Users_UpdatePassword(DTO_Users obj)
    {
        try
        {

            if (DAL_Users_UpdatePassword(obj))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        catch
        {
            return false;
        }
    }
    public Boolean Users_Insert(DTO_Users obj)
    {
        try
        {

            if (DAL_Users_Insert(obj))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        catch
        {
            return false;
        }
    }
    public DataTable Users_getByStatus(int status)
    {
        try
        {
            dt = DAL_Users_getByStatus(status);
        }
        catch
        {
        }
        return dt;
    }
}